package com.terren.spider.db.service.impl;

import org.springframework.stereotype.Service;

import com.terren.spider.db.basic.BasicServiceSupportImpl;
import com.terren.spider.db.service.SpiderLogService;
import com.terren.spider.entity.common.SpiderLog;
@Service("spiderLogService")
public class SpiderLogServiceImpl extends BasicServiceSupportImpl implements SpiderLogService {
	
	private final String SQL_MAPPER = "spiderLogMapper.";
	
	@Override
	public Integer addSpiderLog(SpiderLog spiderLog) throws Exception {
		
		return (Integer) basicDao.save(SQL_MAPPER+"addSpiderLog", spiderLog);
	}

	@Override
	public void updateSpiderLog(SpiderLog spiderLog) throws Exception {
		basicDao.save(SQL_MAPPER+"updateSpiderLog", spiderLog);
	}

}
